const AutoDir = require("require-directory");
function initManage(app){
    const useRoutes = (obj) => {
        /* obj.stack为真就是一个路由 */
        if (obj.stack) {
            app.use(obj);
        }
    }
    AutoDir(module, '../router', { visit: useRoutes })
}
module.exports = initManage;